/*
 * @Description:
 * @version: 0.0.1
 * @Author: 小妖怪
 * @Date: 2021-07-25 12:46:40
 * @LastEditors: Mr.小妖怪
 * @LastEditTime: 2021-07-25 17:30:43
 * @FilePath: \study_typescript\demo\index.ts
 */
{
  let a: string
  a = "hello world"
  console.log(a);

  enum Gender {
    male = 1,
    female = 0
  }
  let o: { name: string, sex: Gender }
  o = {
    name: 'justin',
    sex: Gender.female
  }
  console.log(o, o.sex === Gender.male, o.name);

  const obj = { name: 'lucy', age: 33 }
  console.log(obj);

}